package com.walter.blog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.web.bind.annotation.CrossOrigin;

@ComponentScan(basePackages = "com.walter")
@MapperScan(basePackages = "com.walter.db.mapper")
@EnableGlobalMethodSecurity(prePostEnabled = true)
@SpringBootApplication
@CrossOrigin
public class BlogApplication {

    public static void main(String[] args) {
        SpringApplication.run(BlogApplication.class, args);
    }

}
